package com.jf.yytgd.entity.dto.comment;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * Created with IntelliJ IDEA
 * Description: 评论创建DTO
 * User:22954
 * Date:2025-02-10
 * Time:1:42
 */
@Data
public class CommentCreateDTO {
    private String relatedType;
    @NotNull
    @Min(1)
    protected Integer relatedId;
    @NotNull
    @Min(1)
    private Integer userId;
    @NotBlank
    private String text;
}
